local PLAYER_BLIPS = {}

addEventHandler("onResourceStart", getResourceRootElement(), function()
	local PLAYERS = getElementsByType("player")
	for index, player in ipairs(PLAYERS) do
		--local x, y, z = getElementPosition(player)
		local R, G, B = getPlayerNametagColor(player)
		PLAYER_BLIPS[index] = createBlipAttachedTo(player, 0, 2, R, G, B, 255)
	end
end)